<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" session="true"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<script type="text/javascript">
		function update(){
			$("#form").attr("action","/admin/bbsGrp/bbsGrpUpdateOk.do");
			$("#form").submit();  
		}  
		
		function goList(){
			$("#form").attr("action","/admin/bbsGrp/bbsGrpList.do");
			$("#form").submit();    
		}  
</script>   
	
	<h2 class="sub-header">${title}</h2> 	
		<form class="form-horizontal" role="form" name="form" id="form" method="post">
		<input name="bbsGrpNo" id="bbsGrpNo" type="hidden" value="${bbsGrpDetail.bbsGrpNo}">
		  <div class="form-group">   
		    <label for="inputEmail3" class="col-sm-2 control-label">게시판 코드</label>
		    <div class="col-sm-10">
		      <input type="text" class="form-control" name="bbsGrpCd" id="bbsGrpCd" placeholder="게시판 코드" value="${bbsGrpDetail.bbsGrpCd }">
		    </div>  
		  </div>
		  <div class="form-group">   
		    <label for="inputEmail3" class="col-sm-2 control-label">게시판 타입 코드</label>
		    <div class="col-sm-10">
		      <input type="text" class="form-control" name="bbsGrpTypeCd" id="bbsGrpTypeCd" placeholder="게시판 타입 코드" value="${bbsGrpDetail.bbsGrpTypeCd }">
		    </div>  
		  </div>
		  <div class="form-group">   
		    <label for="inputEmail3" class="col-sm-2 control-label">게시판 이름</label>
		    <div class="col-sm-10">
		      <input type="text" class="form-control" name="bbsGrpNm" id="bbsGrpNm" placeholder="게시판 이름" value="${bbsGrpDetail.bbsGrpNm }">
		    </div>  
		  </div>
		  <div class="form-group">   
		    <label for="inputEmail3" class="col-sm-2 control-label">게시판 설명</label>
		    <div class="col-sm-10">
		      <input type="text" class="form-control" name="bbsGrpInfo" id="bbsGrpInfo" placeholder="게시판 설명" value="${bbsGrpDetail.bbsGrpInfo }">
		    </div>  
		  </div>
		  <div class="form-group">
		    <div class="col-sm-offset-2 col-sm-10">  
		     	<a class="btn btn-default" href="#" onClick="update()">등록</a>
		     	<a class="btn btn-default" href="#" onClick="goList()">목록</a>
		    </div>
		  </div>
		</form>